import http from '@/request/http';

// 新增收藏
export function favorAdd(articleId) {
  return http({
    url: '/bbs/favor/add',
    data: {"articleId": articleId},
  })
}

// 取消收藏
export function favorCancel(articleId) {
  return http({
    url: '/bbs/favor/cancel',
    data: {"articleId": articleId}
  })
}
